﻿@{
    ViewBag.Title = "Admin regisztráció";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@model ELTE.SEM.Data.ViewModels.RegisterViewModel
<div id="su-reg-form">
    <div id="su-reg-container">

        @if (ViewBag.Result != null)
        {
            <div class="registration-result">
                @ViewBag.Result
            </div> 
        }
        @using (Html.BeginForm())
        {
            <fieldset>
                <legend>Admin regisztráció</legend>
                <div class="registration-field">
                    <div>
                        <div class="registration-label">@Html.LabelFor(m => m.Name)</div>
                        <div class="registration-input">@Html.TextBoxFor(m => m.Name)</div>
                    </div>
                    <div class="registration-validation">
                        @Html.ValidationMessageFor(m => m.Name)
                    </div>

                </div>
                <div class="registration-field">
                    <div>
                        <div class="registration-label">@Html.LabelFor(m => m.Password)</div>
                        <div class="registration-input">@Html.PasswordFor(m => m.Password)</div>
                    </div>
                    <div class="validation-message">
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>

                </div>
                <div class="registration-field">
                    <div class="registration-label">&nbsp;</div>
                    <div class="registration-input">
                        <input type="submit" value="Regisztrál" /></div>

                </div>
            </fieldset> 
        }
    </div>
</div>
